package xyz.haijin.spider.dao;

import xyz.haijin.spider.entity.WallpaperType;
import xyz.haijin.zt.mysql.core.BaseDAO;
import xyz.haijin.zt.mysql.mapper.BaseMapper;
import xyz.haijin.zt.mysql.mapper.impl.BaseMapperImpl;

import java.util.List;

/**
 * @Author liuhaijin
 * @Date 2022/3/29
 */
public class WallpaperTypeDao extends BaseDAO<WallpaperType> {
    public WallpaperTypeDao() {
        super(WallpaperType.class, "wallpaper");
    }

    public static void main(String[] args) throws Exception {
        BaseMapper<WallpaperType> baseMapper = new BaseMapperImpl<WallpaperType>(WallpaperType.class,"wallpaper");
//        List<WallpaperType> list = baseMapper.list();
//        System.out.println("list:"+list);
        List<WallpaperType> wallpaperTypes = baseMapper.inByIds(2, 3, 4,5);
        System.out.println("wallpaperType："+wallpaperTypes);
    }
}
